TigerBot MACD + Stochastic Strategy (Backtesting)The logic for this strategy is based on a combination of the Moving Average Convergence Divergence (MACD) indicator and the Stochastic formula. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
Cerca negli script per "stop loss"
TigerBot RSI + Stochastic Skeleton (Faster Backtesting)The logic for this strategy is based on a combination of the Relative Strength Index (RSI) indicator and the Stochastic formula. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot RSI + Stochastic Strategy (Backtesting)The logic for this strategy is based on a combination of the Relative Strength Index (RSI) indicator and the Stochastic formula. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot MFI + HA Skeleton (Faster Backtesting)The logic for this strategy is based on a combination of the Money Flow Index (MFI) indicator and Heiken Ashi (HA) candles that run in the background. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot MFI + HA Strategy (Backtesting)The logic for this strategy is based on a combination of the Money Flow Index (MFI) indicator and Heiken Ashi (HA) candles that run in the background. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Automatic Fibonacci Skeleton (Faster Backtesting)The logic for this strategy is based on Automatic Fibonacci reversal trend calculations. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Automatic Fibonacci Strategy (Backtesting)"The logic for this strategy is based on Automatic Fibonacci reversal trend calculations. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation! "
TigerBot RSI + BB Skeleton (Faster Backtesting)The logic for this strategy is based on a combination of the Bollinger Bands (BB) and the Relative Strength Index (RSI) indicators. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot RSI + BB Strategy (Backtesting)The logic for this strategy is based on a combination of the Bollinger Bands (BB) and the Relative Strength Index (RSI) indicators. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Fibollinger Skeleton (Faster Backtesting)The logic for this strategy is based on a combination of Fibonacci lines applied inside of the Bollinger Bands (BB) indicator. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Fibollinger Strategy (Backtesting)The logic for this strategy is based on a combination of Fibonacci lines applied inside of the Bollinger Bands (BB) indicator. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot MACD + SMA Skeleton (Faster Backtesting)The logic for this strategy is based on a combination of the Moving Average Convergence Divergence (MACD) and the Simple Moving Average (SMA) indicators. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot MACD + SMA Strategy (Backtesting)The logic for this strategy is based on a combination of the Moving Average Convergence Divergence (MACD) and the Simple Moving Average (SMA) indicators. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Percentage Tracker Skeleton (Faster Backtesting)The logic for this strategy is based on percentage of price movement within a given time frame. It works both as a momentum catcher and a reversal catcher. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Percentage Tracker Strategy (Backtesting)The logic for this strategy is based on percentage of price movement within a given time frame. It works both as a momentum catcher and a reversal catcher. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Moon Phase Skeleton (Faster Backtesting)The logic for this strategy is based on the phases of the moon, and tends to work especially well on commodities. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the SKELETON version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
TigerBot Moon Phase Strategy (Backtesting)The logic for this strategy is based on the phases of the moon, and tends to work especially well on commodities. Customize the input parameters and test on various charts and timeframes for maximum profit potential.
Note: This is a TigerBot Strategy, which means that it is set up and ready for you to use it with our full set of automation and risk management features such as:
Thorough event triggers for automated order execution
Profit/Loss Zones
Profit/Loss Indicators
Take Profit
Normal Stop Loss
Trailing Stop Loss
Advanced Trailing Stop
Profit Locker Stop Loss
Advanced Pyramiding Support
Leverage Support
Much more
Each TigerBot Strategy includes a set of 3 scripts that belong together:
STRATEGY - used for full-featured customization with all our visuals
STUDY - with alert triggers for automation
SKELETON - for faster backtesting without the visuals enabled
This is the STRATEGY version of this script. Please also see the other 2 related scripts.
Visit TheTigerBot.com to gain access and take advantage of the full TigerBot features on this strategy, or submit your own script for TigerBot automation!
SuperTrade ST1 StrategyThis strategy leverages the Supertrend indicator to identify trend direction and capture key entry and exit points in the market. By utilizing ATR (Average True Range) for dynamic stop-loss and take-profit levels, this script adapts to varying market conditions for improved risk management.
Key Features
Supertrend Indicator: Defines the trend direction and generates buy/sell signals based on trend reversal points.
ATR-based Exits: Take Profit and Stop Loss are dynamically calculated using ATR multipliers to accommodate market volatility.
Customizable Inputs: Fine-tune the ATR Length, Supertrend Factor, and ATR multipliers for take-profit and stop-loss according to your strategy preferences.
Visual Indicators: Buy and Sell signals are clearly marked with labels on the chart, and the Supertrend line is color-coded for easy trend identification.
Background Trend Highlighting: The chart background changes color based on the prevailing trend to make it easier to follow the market direction.
This strategy is perfect for traders looking to ride trends while managing risk with smart, automated exits.
Market Structure ATR StrategyThis strategy identifies market structure shifts by detecting changes of character (CHoCH), inducements (IDM), and breaks of structure (BOS), then enters trades when these align with volume and RSI filters. It manages risk using ATR-based stop losses (2x ATR) and take profits (3x ATR), with an option for trailing stops that follow new swing points. The system aims to capture significant trend moves by waiting for market manipulation (inducements) before confirmation (BOS), effectively trading with institutional money flow rather than against it.
Swing Trading Price Action StrategyThe strategy combines multiple technical analysis approaches to identify potential swing trading opportunities in the market.
# Swing Trading Price Action Strategy Description
This is a comprehensive swing trading strategy implemented in Pine Script (version 5) for TradingView. The strategy combines multiple technical analysis approaches to identify potential swing trading opportunities in the market.
## Key Components
### 1. Backtest Settings
- The backtest period is configurable, with default dates set from January 2020 to December 2023
- Trading direction can be set to Long Only, Short Only, or Both
- Timeframe selection allows using current timeframe or custom timeframes with options for 4-hour (240), Daily (D), or Weekly (W)
### 2. Swing Trading Filters
- Minimum swing size based on ATR (Average True Range) multiples
- Configurable lookback periods for swing identification
- Designed to filter out minor price movements and focus on significant swings
### 3. Price Pattern Detection
- Double Tops and Bottoms detection with adjustable thresholds
- Head and Shoulders pattern recognition
- Channel breakout identification using highest and lowest price over a specified period
### 4. Candlestick Patterns
- Pinbar (Shooting Star and Hammer) detection
- Engulfing pattern recognition with configurable body size threshold
- Tweezer Tops and Bottoms
- Three Outside Up/Down patterns
### 5. Trend Detection
- Uses EMAs (Exponential Moving Averages) of different lengths to establish trend direction
- MACD (Moving Average Convergence Divergence) for trend confirmation
- Trend alignment requirement for trade entry
### 6. Volume Analysis
- Volume EMA to identify higher than average volume
- Volume breakout detection
- Option to require volume confirmation for entries
### 7. Exit Rules
- Take Profit and Stop Loss with percentage-based settings (default TP: 5%, SL: 2.5%)
- Maximum bars in trade exit (default: 30 bars)
- Trailing stop functionality with activation threshold
- The trailing stop activates once a certain profit percentage is reached
### 8. Risk Management
- Configurable risk per trade as a percentage of equity
- Position sizing based on account equity
## Strategy Logic
The strategy enters long positions when:
1. The trend is up (if trend detection is enabled)
2. A bullish price pattern is detected (double bottom, bullish pinbar, bullish engulfing, etc.)
3. Volume conditions are met (if enabled)
4. A valid swing low is identified (if swing filters are enabled)
Similarly, it enters short positions when:
1. The trend is down (if trend detection is enabled)
2. A bearish price pattern is detected (double top, bearish pinbar, bearish engulfing, etc.)
3. Volume conditions are met (if enabled)
4. A valid swing high is identified (if swing filters are enabled)
The strategy exits positions based on:
- Take profit or stop loss levels
- Trailing stop (if enabled and activated)
- Maximum time in trade (bars)
## Visual Elements
The strategy displays various visual elements on the chart, including:
- EMA lines for trend identification
- Price channels
- Candlestick pattern markers
- Swing high/low indicators
- Volume histogram with EMA
- Information table with strategy settings
This strategy is designed for swing trading, which typically involves holding positions for several days to weeks, focusing on capturing "swings" in price action.
Funding Rate Strategy Indicator🚀 Funding Rate Strategy Indicator - Advanced Futures Trading Tool
🎯 Harness the Power of Funding Rates for Strategic Trading
The Funding Rate Strategy Indicator is a sophisticated trading tool designed for futures traders who want to capitalize on funding rate anomalies in cryptocurrency and derivatives markets.
This indicator monitors funding rate extremes and identifies potential trading opportunities when market sentiment becomes excessively skewed.
✨ Key Features
🔍 Funding Rate Monitoring: Automatically tracks funding rate values and identifies extreme conditions
📊 Volume Confirmation: Ensures signals are supported by increased trading volume
🕓 4-Hour Session Focus: Optimized for the critical 4-hour candle closings (03:00, 07:00, 11:00, 15:00, 19:00, 23:00)
🛑 Daily Signal Limits: Prevents overtrading by capping the number of signals per day
🚦 Visual Alerts: Clear visual indicators for both entry and exit signals
🎛️ Customizable Thresholds: Adjust long/short thresholds to match your risk tolerance
🧪 Backtesting Capability: Test the strategy against historical data with flexible take profit and stop loss settings
⚡ How It Works
The strategy follows a straightforward principle:
✅ When funding rates become extremely negative (≤ -2.00%) with volume confirmation, it generates LONG signals
✅ When funding rates become extremely positive (≥ +2.00%) with volume confirmation, it generates SHORT signals
This approach capitalizes on market imbalances, as extreme funding rates often indicate market sentiment reaching unsustainable levels – creating potential reversal opportunities.
🧠 Trading Logic
🎯 Signal Generation: The indicator monitors funding rates and volume changes to identify potential entry points
🎯 Entry Conditions: Triggers entries when funding rates cross your specified thresholds with volume confirmation
🚪 Exit Strategy: Closes positions when funding rates normalize or when take profit/stop loss levels are reached
🛡️ Risk Management: Includes options for trailing stops, fixed take profit, and stop loss levels
🔥 Perfect For
💹 Cryptocurrency futures traders
🔍 Market sentiment analysts
⚙️ Traders focusing on derivatives markets
🚀 Anyone looking to capitalize on funding rate market mechanics
🚀 Getting Started
Simply add the indicator to your chart, adjust the thresholds to match your preferred risk level, and start monitoring for signals.
🖥️ The clean visual interface displays current funding rates, position status, and profit information at a glance.
Ultimate SuperTrend ProThe ultimate script works correctly while maintaining all the original features:
Customizable Inputs:
Separate input groups for SuperTrend, visualization, profit booking, and risk management
Adjustable ATR length and multiplier
Cloud opacity control
ATR-Based Cloud Visualization:
Bullish trend shows green cloud between upper band and upper band - 0.5 ATR
Bearish trend shows red cloud between lower band and lower band + 0.5 ATR
Adjustable opacity for better chart visibility
Profit Booking System:
Calculates profit booking levels based on ATR multiplier
Visual markers (circles) show where to take profits
Arrows appear when price hits profit booking level
Fully customizable color and ratio
Enhanced Risk Management:
ATR-based stop loss system
Visual indication of stop levels in the info table
Option to disable stop loss if desired
Improved Visual Feedback:
Cleaner signal markers
Comprehensive info table showing current status
Distance to profit booking level displayed
Strategy Integration:
Automatically exits positions at profit booking levels
Stop loss protection
Clear alert conditions
EMA200/EMA7 HA w/ TP/SL & Markdown Alerts1. Purpose
A hybrid trend-and-momentum strategy on Heikin-Ashi candles that:
Enters long when price is sufficiently below the 200-period EMA and then crosses up above the 7-period EMA, plus bullish HA trend/momentum.
Enters short when price is sufficiently above the 200-period EMA and then crosses down below the 7-period EMA, plus bearish HA trend/momentum.
Applies configurable take-profit and stop-loss levels on every trade.
Emits rich “Markdown” alerts and plots key levels and a live stats table on the chart.
2. Inputs
Input Description Default
Enable Longs Toggle permission to open long trades true
Enable Shorts Toggle permission to open short trades false
Take Profit % TP distance from entry (percent) 2 %
Stop Loss % SL distance from entry (percent) 2 %
Long Threshold % How far below EMA200 price must be to trigger a long raw signal 0.1 %
Short Threshold % How far above EMA200 price must be to trigger a short raw signal 0.1 %
3. Core Calculations
Heikin-Ashi candles
ha_open / ha_close via request.security(heikinashi,…)
Trend EMAs on HA close
ema200 (200-period) in red
ema7 ( 7-period) in blue
Trend filters
Bullish HA if ha_close > ha_open
Bearish HA if ha_close < ha_open
Momentum filters (two consecutive HA closes rising/falling)
momBull: two rising bars
momBear: two falling bars
4. Signal Generation
Raw long signal (sigLong0) when
(ema200 - ha_close)/ema200 > thLong (price sufficiently below EMA200)
ta.crossover(ha_close, ema7)
Raw short signal (sigShort0) when
(ha_close - ema200)/ema200 > thShort (price sufficiently above EMA200)
ta.crossunder(ha_close, ema7)
Final signals only fire if the corresponding raw signal AND trend/momentum filters and the “enable” checkbox are satisfied.
5. Entries & Exits
On Long:
Record entryPrice = close
Compute tpLine = entryPrice * (1 + tpPerc)
Compute slLine = entryPrice * (1 - slPerc)
strategy.entry("Long", …)
On Short:
tpLine = entryPrice * (1 - tpPerc)
slLine = entryPrice * (1 + slPerc)
strategy.entry("Short", …)
All exits handled by
pinescript
Copier
Modifier
strategy.exit("Exit Long", from_entry="Long", limit=tpLine, stop=slLine)
strategy.exit("Exit Short", from_entry="Short", limit=tpLine, stop=slLine)
6. Alerts
Rich Markdown alerts sent at each entry, containing:
Pair & exchange
Entry price & leverage (hard-coded “5x”)
Calculated TP & SL levels
Simpler alertconditions for chart-based alerts:
“🔥 Achat {{ticker}} à {{close}}”
“❄️ Vente {{ticker}} à {{close}}”
7. Visuals & Stats Table
Plots:
TP/SL lines in green/red (only when a position is open)
EMA200 (red) & EMA7 (blue) overlays
Live stats table (bottom-right) updated every 10 bars showing:
Total trades
Win rate (%)
Net profit
Average profit per trade
Max drawdown
In essence, this strategy blends a trend-filter (200 EMA) with a momentum-confirmation (crossover of 7 EMA on HA bars), applies strict risk management (TP/SL), and surfaces both visual and alert-based feedback to help you capture small, disciplined scalps in trending markets. Ready for telegram